package com.css.upms.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.css.common.core.datascope.DataScope;
import com.css.upms.api.entity.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 部门信息表
 *
 * @author hanyx
 * @date 2019-05-03 01:56:29
 */
public interface SysDeptMapper extends BaseMapper<SysDept> {
    /**
     * 部门信息表简单分页查询
     *
     * @param sysDept 部门信息表
     * @return
     */
    IPage<SysDept> getSysDeptPage(Page page, @Param("sysDept") SysDept sysDept, DataScope dataScope);

    List<SysDept> getSysDeptList(@Param("sysDept") SysDept sysDept, DataScope dataScope);

    List<SysDept> listDeptsByRoleId(String roleId);

    List<SysDept> listDeptsByUserId(String userId);
}
